package com.sky.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.dto.ShoppingCartDTO;
import com.sky.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:篍
 * @Date: 2025/08/25 21:24
 * @Description:
 */
@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    /**
     * 查询指定用户的购物车数据
     * @param userId
     * @return
     */
    ShoppingCart selectRecord(@Param("userId") Long userId,@Param("dto") ShoppingCartDTO dto);

    /**
     * 获取指定用户的购物车菜品制作时间
     * @param userId
     * @return
     */
    Long getTotalMakeTimeByUserId(Long userId);
}
